#ifndef XTRA_RES_H
#define XTRA_RES_H

#include <wx/xrc/xmlres.h>
#include <wx/xrc/xh_dlg.h>
#include <wx/toolbar.h>

class wxXmlResourceHandler;

class wxToolBarAddOnXmlHandler : public wxXmlResourceHandler {
  public:
    wxToolBarAddOnXmlHandler();
    virtual wxObject *DoCreateResource();
    virtual bool CanHandle( wxXmlNode *node );
  protected:
    bool m_isInside;
    bool m_isAddon;
    wxToolBar *m_toolbar;
    wxBitmap GetCenteredBitmap( const wxString& param = _T( "bitmap" ), const wxArtClient& defaultArtClient = wxART_OTHER,
                                wxSize size = wxDefaultSize );
};

class wxScrollingDialogXmlHandler : public wxDialogXmlHandler {
    DECLARE_DYNAMIC_CLASS( wxScrollingDialogXmlHandler )
  public:
    wxScrollingDialogXmlHandler();
    virtual wxObject *DoCreateResource();
    virtual bool CanHandle( wxXmlNode *node );
};

#endif
